package me.nibo.webframework.commons.enumeration;

/**
 * 状态枚举
 */
public enum Status implements ValueEnum<String, Integer> {
    /**
     * 禁用
     */
    DISABLE("禁用", 0),
    /**
     * 启用
     */
    ENABLE("启用", 1);

    // 名称
    private String name;
    // 值
    private Integer value;

    private Status(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getName() {
        return name;
    }
}
